/**
 * 测试1s能加并打印多少个数；
 * @author: sundx 
 * @date: 2020-05-22 20:09:19 
 * @Last Modified by: sundx
 * @Last Modified time: 2020-05-23 06:34:59
 */
#include <sys/signal.h>
#include <iostream>
#include <unistd.h>
int main()
{
    int i = 0;
    alarm(1);
    while (++i)
    {
        // std::cout << i << std::endl;
        printf("%d\n", i);
    }
    return 0;
}
